import { getCityData } from "@/services";

import { defineStore } from "pinia";

const useCityStore = defineStore('city', {
  state: () => (
    {
      cities: {}
    }
  ),
  actions: {
    async fetchCitiesData() {
      const res = await getCityData()
      this.cities = res.data
    }
  }
})
export default useCityStore

